
import Layout from '@/layout/Layout.vue';
import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";



export const routes: Array<RouteRecordRaw> = [
	{
		path: "/",
		component: Layout,
		redirect: '/home',
		meta:{ hidden: false },
		children: [
			{
				path:'home',
				name:'home',
				meta: { title: '首页', icon: 'el-icon-s-home', affix: true, cache: false, hidden: false },
				component: () => import('@/views/Home.vue'),
			}
		]
	},
	{
		path: "/about",
		name: "About",
		meta:{ hidden: false },
		component: () => import('@/views/About.vue'),
	},
];

const router = createRouter({
	history: createWebHashHistory(),
	routes,
});

export default router;
